:root[data-theme="light"] {
    --bg-color: #f0f0f0;
    --text-color: #333333;
    --link-color: #005a8f;  
    --border-color: #ddd;
    --txtbg-color: #ffffffcc;
}

:root[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #404040;
    --txtbg-color: #1a1a1a;
    --link-color: #b5daf0;  
}


body {
    background-color: var(--bg-color);
    padding: 20px;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 增加一些背景 */

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}


.input-form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.input-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* style="max-width: 300px; max-height: 300px; */
img,video {
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    img {
        /* max-width: 300px; */
        width: 100%;
        height: auto;
    }
}

textarea  {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.9;
    resize: vertical;
    background-color: var(--txtbg-color);
}

a {
    color: var(--link-color);
}

.button-group {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.icon-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: var(--border-color);
    color: var(--text-color);
    cursor: pointer;
}

.card {
    /* ZNCH font */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(10px);
    background-color: var(--txtbg-color);
    border-radius: 8px;
    padding: 15px;
    margin: 15px;
    min-height: 300px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
pre {
    margin: 0em 0px;
    white-space: pre-wrap;
}
[data-theme="dark"] .card {
    background-color: rgba(255, 255, 255, 0.05);
}

.card-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.card-header {
    position: absolute;
    top: -5px;
    right: 5px;
    z-index: 10;
}

.raw-button {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.raw-button:hover {
    opacity: 1;
}

.delete-button:hover {
    background-color: #ff4444 !important;
    color: white;
}

/* 文件卡片样式 */
.file-card {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    background-color: rgba(128, 128, 128, 0.1);
}

/* 文件信息样式 */
.file-info {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 8px;
}

/* 图片卡片样式 */
.image-card {
    display: inline-flex;
    flex-direction: column;
    margin: 5px 0;
}

.image-info {
    margin-top: 4px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

/* 拖放区域样式 */
#drop-zone {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

/* 图标样式 */
.fas {
    color: var(--text-color);
    opacity: 0.8;
}

 /* 主题变量 */
 [data-theme="dark"] {
    --text-color: #ffffff;
    --link-color: #58a6ff;
    --icon-color: #ffffff;
}

[data-theme="light"] {
    --text-color: #666666;
    --link-color: #0366d6;
    --icon-color: #666666;
}

/* 文件信息样式 */
.file-info {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
}

/* 图标样式 */
.fas {
    color: var(--icon-color);
    opacity: 0.8;
}

/* 链接样式 */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 文件卡片样式 */
.file-card {
    display: inline-flex;
    align-items: center;
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
    background-color: rgba(var(--text-color-rgb), 0.05);
}

/* 图片卡片样式 */
.image-card {
    display: inline-flex;
    flex-direction: column;
    margin: 5px 0;
}

.image-info {
    margin-top: 4px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

/* 圆形按钮样式 */
.github-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.github-button:hover {
    background-color: #555;
}